package com.api.shopapi.service;

import com.alibaba.fastjson.JSONObject;
import com.api.shopapi.entity.OrderGoodsPrice;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderGoodsPriceService {

    int insert(OrderGoodsPrice orderGoodsPrice);

    int update(OrderGoodsPrice orderGoodsPrice);

    int delete(String orderGoodsPriceCode);

    OrderGoodsPrice getByOrderGoodsPriceCode(String orderGoodsPriceCode);

    OrderGoodsPrice getByOrderGoodsCode(String orderGoodsCode);

    List<JSONObject> getAllOrderGoodsAttribute(String orderGoodsCode);

    List<OrderGoodsPrice> getList();

    PageInfo<OrderGoodsPrice> getPageList(int pageIndex,int pageSize,String goodsSizeName,String goodsColorName);
}
